package com.zjj.entity;

import java.io.Serial;
import java.io.Serializable;

public class User implements Serializable {


    @Serial
    private static final long serialVersionUID = 7503974025583265821L;
    //  用户ID
    private int id;
    //用户名称
    private String name;
    //角色ID
    private int roleId;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getRoleId() {
        return roleId;
    }

    public void setRoleId(int roleId) {
        this.roleId = roleId;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", roleId=" + roleId +
                '}';
    }
}
